package com.appkubes.portal.admin.application.customer.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("添加应用")
public class CustomerAppAddVO {

    @NotEmpty(message = "用户KEY不能为空")
    @ApiModelProperty("用户KEY")
    String customerKey;

    @NotEmpty(message = "应用类型不能为空")
    @ApiModelProperty("应有类型(MALL|SITE|CMS|HELP|SMS)")
    @Pattern(regexp = "(MALL|SITE|CMS|HELP|SMS)", message = "类型不正确")
    String appType;

    @NotEmpty(message = "应用名")
    @ApiModelProperty("应用名称")
    String appName;
}
